#ifndef __Ctrl_Reg_Driver_App_H__
#define __Ctrl_Reg_Driver_App_H__

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

#define Ctrl_Reg_Driver_Name "/dev/Ctrl_Reg_Driver"

static int Ctrl_Reg_Driver_Num;

typedef struct 
{
    uint32_t ADDR;
    uint32_t Value;
    int Error_Flag;
}Ctrl_Reg_Driver_Struct;

int Init_Ctrl_Reg_Driver(void);
int Close_Ctrl_Reg_Driver(void);
Ctrl_Reg_Driver_Struct Ctrl_Reg_Driver_Read(Ctrl_Reg_Driver_Struct Stu);
Ctrl_Reg_Driver_Struct Ctrl_Reg_Driver_Write(Ctrl_Reg_Driver_Struct Stu);

#endif
